package cn.simple.manager.web;

import cn.simple.manager.Repository.FontStorageResponsitory;
import cn.simple.manager.todo.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/font")
public class FontController {
    @Autowired
    FontStorageResponsitory fontStorageResponsitory;

    @RequestMapping("/get")
    public ResponseEntity getFonts(){
        return ResponseEntity.ok(fontStorageResponsitory.findAll());
    }
}
